package cn.milolab.djback.bean.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author milowang
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {
    private Integer id;
    private Integer userId;
    private String stuSerial;
    private String jobSerial;
    private String name;
    private RoleLevel role;

    /**
     * @author milowang
     */
    @Getter
    @AllArgsConstructor
    public enum RoleLevel {
        // 未注册
        UNREGISTERED(0, "未注册"),

        // 普通微信用户
        COMMON_WECHAT_USER(1, "普通微信用户"),

        // 社员
        EMPLOYEE(2, "社员"),

        // 秘书
        SECRETARY(3,"秘书"),

        // 主席团成员
        ADMIN(4, "主席团成员");

        private final Integer level;
        private final String description;
    }
}
